from parse.symbol_table.variable import Variable
from lexer.token.token_type import TokenType

class Pointer(Variable):
    def __init__(self,
                 scopePath: list,
                 isExterned: bool,
                 token_type: TokenType,
                 name: str,
                 init = None):
        super(Pointer, self).__init__(scopePath, isExterned, token_type, name, init)

        if isExterned:
            self.size = 4   # 指针都是4字节
